package com.hutao.medical.pojo.model;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.hutao.medical.common.util.StringUtil;

public class HospitalVisitDoctorAdviceTemporaryItem {

	/**
	 * 预设时间
	 */
	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date presupposeDateTime;
	
	/**
	 * 医嘱内容
	 */
	private String doctorAdviceContent;
	
	/**
	 * 医师姓名
	 */
	private String doctorName;
	
	/**
	 * 护士姓名
	 */
	private String nurseName;
	
	/**
	 * 执行时间
	 */
	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date executionDateTime;
	
	
	@JsonIgnore
    public boolean isEmpty(){
    	if(this.getPresupposeDateTime() == null && this.getDoctorAdviceContent() == null
    			&& this.getDoctorName() == null && this.getNurseName() == null){
    		return true;
    	}
    	return false;
    }


	public Date getPresupposeDateTime() {
		return presupposeDateTime;
	}

	public void setPresupposeDateTime(Date presupposeDateTime) {
		this.presupposeDateTime = presupposeDateTime;
	}

	public String getDoctorAdviceContent() {
		return StringUtil.meaningStr(doctorAdviceContent);
	}

	public void setDoctorAdviceContent(String doctorAdviceContent) {
		this.doctorAdviceContent = doctorAdviceContent;
	}

	public String getDoctorName() {
		return StringUtil.meaningStr(doctorName);
	}

	public void setDoctorName(String doctorName) {
		this.doctorName = doctorName;
	}

	public String getNurseName() {
		return StringUtil.meaningStr(nurseName);
	}

	public void setNurseName(String nurseName) {
		this.nurseName = nurseName;
	}

	public Date getExecutionDateTime() {
		return executionDateTime;
	}

	public void setExecutionDateTime(Date executionDateTime) {
		this.executionDateTime = executionDateTime;
	}
	
	
	
}
